//
//  ViewController.m
//  5_
//
//  Created by qianfeng007 on 15-9-6.
//  Copyright (c) 2015年 王威. All rights reserved.
//

#import "ViewController.h"
#import "WWScrollView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    
    WWScrollView *scrollView = [[WWScrollView alloc] initWithFrame:CGRectMake(0, 0, 300, 500)];
    scrollView.center = self.view.center;
    NSMutableArray *imagearr = [NSMutableArray array];
    for (NSInteger i = 1; i <= 6; i++) {
        [imagearr addObject:[UIImage imageNamed:[NSString stringWithFormat:@"%ld.png",i]]];
    }
    
    scrollView.imageArray = imagearr;
    [self.view addSubview:scrollView];
}


@end
